package com.intelligence.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 *
 * @TableName t_device_log
 */
@TableName(value ="t_device_log")
@Data
public class DeviceLog implements Serializable {
    /**
     * 主键自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     *
     */
    @TableField(value = "userId")
    private Integer userid;

    /**
     * 设备id
     */
    @TableField(value = "deviceId")
    private Integer deviceid;

    /**
     *
     */
    @TableField(value = "farmId")
    private Integer farmid;

    /**
     * 设备名称
     */
    @TableField(value = "deviceName")
    private String devicename;

    /**
     * 日志级别
     */
    @TableField(value = "level")
    private String level;

    /**
     * 日志内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updatetime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
